package site.yunnong.atvris.common.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

//import javax.validation.constraints.Max;
//import javax.validation.constraints.Min;

/**
 * @author zjh
 * @date 2021/7/11 12:25
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserQueryParam {
    
    @ApiModelProperty("用户唯一标识")
    private Long uuid;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("用户状态：0 禁用，1 启用")
    private Integer status;
    @ApiModelProperty("保留，职业")
    private String job;

    @ApiModelProperty("性别, 0: 未知，1：男，2：女")
    private Integer gender;

    @ApiModelProperty("教育水平")
    private Integer education;

    @ApiModelProperty("所在城市")
    private String city;

    @ApiModelProperty(value = "排序字段", dataType = "String", example = "register_time")
    private String sortBy;

    @ApiModelProperty(value = "排序规则", dataType = "String", example = "desc")
    private String sortRule;

//    @Min(1)
    @ApiModelProperty("页码，默认1")
    private Integer pageNum;

//    @Min(1)
//    @Max(100)
    @ApiModelProperty("每页记录数， 默认20")
    private Integer pageSize;
    
    // 后端 init
    private Integer startIndex;

}
